import { myRequest } from '@/utils/api.js'

// 获取用户授权菜单
export function getAuthMenu() {
  return myRequest('/api/auth/menu', {}, 'GET')
}

// 获取用户按钮权限
export function getButtonAuth(menuId) {
  return myRequest('/api/auth/buttons', { menu_id: menuId }, 'GET')
}